//package com.pubinfo.passbook.api.controller.auth.debug;
//
//import com.googlecode.aviator.AviatorEvaluatorInstance;
//import com.pubinfo.passbook.common.entity.TRuleFormula;
//import com.pubinfo.passbook.common.model.vo.base.JsonResult;
//import com.pubinfo.passbook.common.service.master.TRuleFormulaService;
//import io.swagger.annotations.Api;
//import io.swagger.annotations.ApiOperation;
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.PostMapping;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//
//import javax.annotation.Resource;
//import java.util.List;
//
//@RestController
//@RequestMapping(value = "aviator")
//@Api(tags = "表达式管理")
//@Slf4j
//public class AviatorEvaluatorController {
//  @Resource
//  AviatorEvaluatorInstance instance;
//  @Autowired
//  TRuleFormulaService formulaService;
//
//  @PostMapping("list")
//  @ApiOperation(value = "查询所有编译数据")
//  public JsonResult<List<TRuleFormula>> listInterfaceClassify() {
//    List<TRuleFormula> formulaList = formulaService.list();
//
//    return JsonResult.success(formulaList);
//  }
//
//  @PostMapping("validate")
//  @ApiOperation(value = "校验表达式")
//  public JsonResult<String> validate(String equation) {
//    instance.validate(equation);
//    return JsonResult.success("成功");
//  }
//}
